import {createStore,applyMiddleware} from 'redux'

import {composeWithDevTools} from 'redux-devtools-extension'

//引入reducer
import songUrlReducer from '../reducers'
import thunk from 'redux-thunk'
//thunk要放在日志之前
//引入日志中间件
import {createLogger} from 'redux-logger'
let logger =createLogger()

export default createStore(songUrlReducer,composeWithDevTools(applyMiddleware(thunk,logger)))